package com.monitor.dao;

import java.util.List;

import com.monitor.po.User;
import com.monitor.util.Pager;

public interface UserDao {
	User getUserByPhone(String phone) throws Exception;

	Pager<User> getAllUser(int pageSize, int currentPage) throws Exception;

	void addUser(User user) throws Exception;

	void updateUser(User user) throws Exception;

	User getUserById(Long id) throws Exception;

	void deleteUser(User user) throws Exception;

	/**
	 * 获取指定时间与服务器通讯过的用户
	 * 
	 * @param time
	 * @return
	 * @throws Exception
	 */
	List<User> getUserBySycTime(long time) throws Exception;

	int clearUserSendSmsCount() throws Exception;
}
